<?php
/**
 * CEOfox
 *
 * @copyright  Copyright 2011-2012 CEOfox, Inc.
 * @license    http://ceofox.com/pages/license
 * @version    $Id: notifications.html.php 17081 2013-05-24 09:40:17 $
 * @author     CEOfox, Inc.
 */
?>
<?php
  defined('PHPFOX') or exit('NO DICE!');
?>
{*
{if isset($bIsReload) && $bIsReload && count($aNotifications)}
    <script type="text/javascript">
        $Behavior.updateNewestId = function()
        {l}
            $('#follow_noti_newest_id').attr('value',{$iNewestId});
        {r}
    </script>
{/if}
*}  

<div class="follow_notification_content {if PHPFOX_IS_AJAX}follow_ajax_load{/if}">
{if PHPFOX_IS_AJAX}
    <span class="follow_notification_close" onclick="$Core.follow.closeFollowNotification();return false;" style="background: url({$sCloseIcon}) no-repeat;"></span>
{/if}

{if isset($bIsReload) && $bIsReload && $iCnt > 1}
   <div class="message">
        <a href="{url link='follow.notification'}" target="_blank" onclick="$Core.follow.closeFollowNotification();">{phrase var='follow.you_have_number_new_notifications' number=$iCnt}</a>
   </div>
  
{else}    
    {if count($aNotifications) && $aNotifications}
        <ul class="noti_wrapper">
            {foreach from=$aNotifications item=aNotification name=notifications}
                <li id="js_notification_read_{$aNotification.feed_id}" class="holder_notify_drop_data{if $phpfox.iteration.notifications == 1} first{/if}">
                <a href="{$aNotification.feed_link}" class="main_link" title="{$aNotification.full_name|clean}" {if PHPFOX_IS_AJAX}target="_blank" onclick="$Core.follow.closeFollowNotification();"{/if}>
                    <div class="drop_data_image">
                        {img user=$aNotification max_width='50' max_height='50' suffix='_50_square' no_link=true}
                    </div>
                    <div class="drop_data_content">
                            {$aNotification.message}
                        <div class="drop_data_time">
                        {if !empty($aNotification.icon)}<img src="{$aNotification.icon}" alt="" class="v_middle" /> {/if}{$aNotification.time_stamp|convert_time}
                        </div>
                    </div>
                    <div class="clear"></div>
                </a>
            </li>
            {/foreach}
        </ul>
    {/if}
{/if}
</div>

